home *** CD-ROM | disk | FTP | other *** search
/ Immoral Angel 1 / Immoral Angel 1.iso / pc / program / play.dxr / 00032.ls < prev    next >
Encoding:
Text File  |  1997-07-11  |  1.6 KB  |  66 lines

  1. on checkplay
  2.   global playnum
  3.   set playnum to 0
  4.   set mh to mouseH() - 20
  5.   set yoko to (mh / 74) + 1
  6.   set playnum to yoko
  7.   if (yoko < 1) or (yoko > 8) then
  8.     exit
  9.   end if
  10.   rolloverplay(playnum, yoko)
  11. end
  12.  
  13. on rolloverplay playnum, yoko
  14.   if playnum = 0 then
  15.     exit
  16.   end if
  17.   puppetSprite(7, 1)
  18.   set the type of sprite 7 to 1
  19.   set the ink of sprite 7 to 0
  20.   set the foreColor of sprite 7 to 255
  21.   set the backColor of sprite 7 to 0
  22.   set playphoto to "Play" & playnum
  23.   set the castNum of sprite 7 to the number of member playphoto
  24.   set the locH of sprite 7 to ((yoko - 1) * 74) + 19
  25.   set the locV of sprite 7 to 74
  26.   updateStage()
  27. end
  28.  
  29. on checkvideo digit
  30.   global videonum
  31.   set videonum to 0
  32.   set mv to mouseV() - 213
  33.   repeat with n = 1 to 6
  34.     if (mv >= 1) and (mv <= 50) then
  35.       set videonum to n
  36.     end if
  37.     set mv to mv - 39
  38.   end repeat
  39.   set videonum to value(digit) + videonum
  40.   rollovervideo(videonum)
  41. end
  42.  
  43. on rollovervideo videonum
  44.   if videonum = 0 then
  45.     exit
  46.   end if
  47.   puppetSprite(7, 1)
  48.   set the type of sprite 7 to 1
  49.   set the ink of sprite 7 to 0
  50.   set the foreColor of sprite 7 to 255
  51.   set the backColor of sprite 7 to 0
  52.   set the castNum of sprite 7 to the number of member "selectedVideo"
  53.   if videonum <= 6 then
  54.     set the locH of sprite 7 to 61
  55.     set the foreColor of sprite 7 to 255
  56.     set the backColor of sprite 7 to 0
  57.     set the locV of sprite 7 to 198 + (videonum * 39)
  58.   else
  59.     if videonum >= 7 then
  60.       set the locH of sprite 7 to 208
  61.       set the locV of sprite 7 to 198 + ((videonum - 6) * 39)
  62.     end if
  63.   end if
  64.   updateStage()
  65. end
  66.